package user;
import book.BookList;
import java.util.Scanner;

public abstract class User {
     String name;//用户名
     private String passWord;//密码

    //构造方法
    public User(String name,String passWord) {
        this.name = name;
        this.passWord = passWord;
    }
    //菜单方法
    public abstract int menu();
    //功能实现方法
    public abstract void  doIoperation(int choice, BookList bookList);
    //获得密码
    public String getPassWord() {
        return passWord;
    }
    //设置密码
    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

}
